package com.lwy.qiuchao.field.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.lwy.common.utils.PageUtils;
import com.lwy.common.utils.Query;

import com.lwy.qiuchao.field.dao.FieldInfoDao;
import com.lwy.qiuchao.field.entity.FieldInfoEntity;
import com.lwy.qiuchao.field.service.FieldInfoService;


@Service("fieldInfoService")
public class FieldInfoServiceImpl extends ServiceImpl<FieldInfoDao, FieldInfoEntity> implements FieldInfoService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<FieldInfoEntity> page = this.page(
                new Query<FieldInfoEntity>().getPage(params),
                new QueryWrapper<FieldInfoEntity>()
        );

        return new PageUtils(page);
    }

}